package org.misalen.web.database.model.mysql.pro;

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 视频广告内容
 * 
 * @author jianhun
 *
 */
@Entity
@Table(name = "ProVideoReward")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProVideoReward extends BaseSqlModel {

	@ModelComment("视频id")
	@Column(name = "videoId", nullable = false)
	private String videoId;

	@ModelComment("用户id")
	@Column(name = "userId")
	private String userId;

	@ModelComment("金额(分)")
	@Column(name = "money", nullable = false)
	private Integer money;

	@ModelComment("抢到的时间")
	@Column(name = "getTime")
	private Date getTime;

	@Transient
	@ModelComment("用户名")
	private String userName;
	
	@Transient
	@ModelComment("视频名称")
	private String videoName;
	
	@Transient
	@ModelComment("手机号")
	private String mobile;
	
	@Transient
	@ModelComment("车牌号")
	private String vehicleNumber;
	
	@Transient
	@ModelComment("车型")
	private String vehicleModel;
	
	@ModelComment("是否在期限内")
	@Column(name = "timeLimit")
	private String timeLimit;
	
	@ModelComment("应该播放时长")
	@Column(name = "playeTime", nullable = false, columnDefinition = " bigint ")
	private BigInteger playeTime;
	
	@ModelComment("已经播放时长")
	@Column(name = "playedTime", nullable = false, columnDefinition = " bigint ")
	private BigInteger playedTime;
	
	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}


	public String getVehicleNumber() {
		return vehicleNumber;
	}


	public void setVehicleNumber(String vehicleNumber) {
		this.vehicleNumber = vehicleNumber;
	}


	public String getVehicleModel() {
		return vehicleModel;
	}


	public void setVehicleModel(String vehicleModel) {
		this.vehicleModel = vehicleModel;
	}


	/**  
	 * 获取playeTime  
	 * @return playeTime playeTime  
	 */
	public BigInteger getPlayeTime() {
		return playeTime;
	}
	

	/**  
	 * 设置playeTime  
	 * @param playeTime playeTime  
	 */
	public void setPlayeTime(BigInteger playeTime) {
		this.playeTime = playeTime;
	}
	

	/**
	 * 获取playedTime
	 * 
	 * @return playedTime playedTime
	 */
	public BigInteger getPlayedTime() {
		return playedTime;
	}

	/**
	 * 设置playedTime
	 * 
	 * @param playedTime
	 *            playedTime
	 */
	public void setPlayedTime(BigInteger playedTime) {
		this.playedTime = playedTime;
	}

	/**
	 * 获取timeLimit
	 * 
	 * @return timeLimit timeLimit
	 */
	public String getTimeLimit() {
		return timeLimit;
	}

	/**
	 * 设置timeLimit
	 * 
	 * @param timeLimit
	 *            timeLimit
	 */
	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * 获取videoId
	 * 
	 * @return videoId videoId
	 */
	public String getVideoId() {
		return videoId;
	}

	/**
	 * 设置videoId
	 * 
	 * @param videoId
	 *            videoId
	 */
	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	/**
	 * 获取userId
	 * 
	 * @return userId userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置userId
	 * 
	 * @param userId
	 *            userId
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取money
	 * 
	 * @return money money
	 */
	public Integer getMoney() {
		return money;
	}

	/**
	 * 设置money
	 * 
	 * @param money
	 *            money
	 */
	public void setMoney(Integer money) {
		this.money = money;
	}

	/**
	 * 获取getTime
	 * 
	 * @return getTime getTime
	 */
	public Date getGetTime() {
		return getTime;
	}

	/**
	 * 设置getTime
	 * 
	 * @param getTime
	 *            getTime
	 */
	public void setGetTime(Date getTime) {
		this.getTime = getTime;
	}


	public String getVideoName() {
		return videoName;
	}


	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}

}
